public class SumOfTwoIntegers {
    // 两整数之和 https://leetcode.cn/problems/sum-of-two-integers/description/
    public int getSum(int a, int b) {
        while(b!=0) {
            int x=a^b;
            int y=(a&b)<<1;
            a=x;
            b=y;//进位
        }
        return a;
    }

}
